package server

import "net/http"

// HttpServletFactory 这里创建httpServlet的构造体
func HttpServletFactory(name string) Server {
	return &HttpServlet{
		Name: name,
	}

}

// HttpContextFactory 这里创建HttpContext的构造体
func HttpContextFactory(w http.ResponseWriter, r *http.Request) *HttpContext {
	return &HttpContext{
		R: r,
		W: w,
	}
}
